﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UFIDA.U9.Cust.XH.PlugBE.Model;
using UFSoft.UBF.Business;
using UFSoft.UBF.Eventing;

namespace UFIDA.U9.Cust.XH.PlugBE
{
    /// <summary>
    /// 客户-进调度
    /// </summary>
    class CustomerInsertExtend : IEventSubscriber
    {
        public void Notify(params object[] args)
        {
            #region 从事件参数中取得当前业务实体													 

            if (args == null || args.Length == 0 || !(args[0] is UFSoft.UBF.Business.EntityEvent))
                return;
            BusinessEntity.EntityKey key = ((UFSoft.UBF.Business.EntityEvent)args[0]).EntityKey;
            if (key == null)
                return;
            UFIDA.U9.CBO.SCM.Customer.Customer entity = key.GetEntity() as UFIDA.U9.CBO.SCM.Customer.Customer;
            if (entity == null)
                return;

            #endregion
            CustomerModel model = new CustomerModel(entity);

        }
    }
}
